package com.ocom.common.entity.payconfig;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * fk_param_config
 * @author 
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName(value = "xf_discount_config")
public class EntityXfDiscountConfig implements Serializable {

    private static final long serialVersionUID = 9065675882894948634L;
    /**
     * 自增id，主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * id` int(11) NOT NULL AUTO_INCREMENT,
     *   `com_id` int(11) NOT NULL DEFAULT '0' COMMENT '单位Id',
     *   `cons_type` tinyint(4) DEFAULT '0' COMMENT '消费类型，-1表示不限制，1表示饭堂，2表示非饭堂',
     *   `meal_no` varchar(50) DEFAULT '' COMMENT '时间段，1-99餐段,500按天，1000按月',
     *   `acc_type_id` tinyint(4) DEFAULT '0' COMMENT '账户类型',
     *   `cons_times` tinyint(4) DEFAULT '0' COMMENT '消费笔数0-9999',
     *   `discount_mode` tinyint(4) DEFAULT '0' COMMENT '优惠方式：0-无优惠，1-按金额优惠，2-按比例打折，11-按金额加收，12-按比例加收',
     *   `discount_value` tinyint(4) DEFAULT '0' COMMENT '优惠幅度，大于0',
     */
    @JsonProperty("comId")
    private Long comId;
    @JsonProperty("consType")
    private Integer consType;
    @JsonProperty("mealNo")
    private Integer mealNo;
    @JsonProperty("mealList")
    private String mealList;
    @JsonProperty("accTypeId")
    private Integer accTypeId;
    @JsonProperty("consTimes")
    private Integer consTimes;
    @JsonProperty("discountMode")
    private Integer discountMode;
    @JsonProperty("discountValue")
    private Integer discountValue;
    private String createUser="";
    private String updateUser="";

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+08")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+08")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;


    private Integer  consTimeZone;

    private Integer merchId;

    private Integer amount;

    @TableField(exist = false)
    private String merchName;
    @TableField(exist = false)
    private Integer accountType;
}